﻿using System.IdentityModel.Tokens.Jwt;
using System.Security.Claims;

namespace ServicesLib.TokenService
{
    public interface ITokenService
    {
        //public Task<T> RefreshTokenAsync(TokenModel tokenModel);
        //public Task<T> RevokeAsync(string username);
        //public Task<T> RevokeAllAsync();
        public JwtSecurityToken CreateToken(List<Claim> authClaims);
        public string GenerateRefreshToken();
        public ClaimsPrincipal? GetPrincipalFromExpiredToken(string? token);
    }
}
